package org.jboss.tools.examples.model;

// Generated 3-gen-2013 16.40.18 by Hibernate Tools 3.4.0.CR1

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.jboss.tools.examples.model.AgendaDettaglioId;

/**
 * AgendaDettaglio generated by hbm2java
 */
@NamedQueries({
	@NamedQuery(
	name = "findDettaglioByDataAndTiAge",
	query = "select ad from AgendaDettaglio ad where ad.id.dataora = :dataora and ad.id.tiAge = 'R'"
	)
})
@Entity
@Table(name = "agenda dettaglio")
public class AgendaDettaglio implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -597813903080203607L;
	private AgendaDettaglioId id;

	public AgendaDettaglio() {
	}

	public AgendaDettaglio(AgendaDettaglioId id) {
		this.id = id;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "pgAge", column = @Column(name = "Pg_age")),
			@AttributeOverride(name = "mcod", column = @Column(name = "mcod")),
			@AttributeOverride(name = "pden", column = @Column(name = "pden", length = 150)),
			@AttributeOverride(name = "ptel", column = @Column(name = "PTEL", length = 60)),
			@AttributeOverride(name = "dataora", column = @Column(name = "dataora", length = 19)),
			@AttributeOverride(name = "ora", column = @Column(name = "ORA", length = 5)),
			@AttributeOverride(name = "note", column = @Column(name = "Note", length = 50)),
			@AttributeOverride(name = "tiAge", column = @Column(name = "Ti_age", length = 1)),
			@AttributeOverride(name = "tiOpeAge", column = @Column(name = "Ti_ope_age", length = 1)),
			@AttributeOverride(name = "visita", column = @Column(name = "Visita")),
			@AttributeOverride(name = "pnascita", column = @Column(name = "pnascita", length = 19)) })
	public AgendaDettaglioId getId() {
		return this.id;
	}

	public void setId(AgendaDettaglioId id) {
		this.id = id;
	}

}
